home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++
- Subject: Re: C/C++ knocks the crap out of Ada
- Date: 6 Mar 1996 00:04:13 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4hjgttINNle1@keats.ugrad.cs.ubc.ca>
- References: <JSA.96Feb16135027@organon.com> <4h4j31$1ga3@watnews1.watson.ibm.com> <4h5cbcINNahr@anvil.ugrad.cs.ubc.ca> <dewar.826058102@schonberg>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <dewar.826058102@schonberg>, Robert Dewar <dewar@cs.nyu.edu> wrote:
- >Kazimir says
- >
- >"Only ANSI guarantees portability."
- >
- >Having read a number of dubious statements from you, I am beginning to
- >wonder whether you really have experience in porting large C programs
- >Sure sounds like someone talking about what they have learned in class
- >SHOULD be the case, rather than someone with a lot of real industrial
- >experience talking about what IS the case.
- >
- >Am I guessing right that you are a college student with limited real
- >world experience.
- >
- >One of the interesting things about Internet is that you never know who
- >anyone is (Kazimir would be interested I think to learn about soe of the
- >people whose opinions he dismisses so casually :-) However, reading
- >enough of what they say gives one a basis for guessing at least!
- >
- >If I am wrong, and you really have had a lot of industrial experience in
- >moving large C codes, then I apologize (but am very surprised!)
-
- Actually I have ported some largish C codes. Portability problems were caused
- largely incompatibilities between operating systems (e.g. one UNIX flavor
- versus another) which would leave me scrambling to patch together something
- that works; and much more rarely, code that does not comply to the ANSI/ISO
- standard by invoking undefined or implementation-defined behavior.
-
- I have learned to respect the standard ``on the street'', not in the classrom.
- Most instructors are painfully ignorant in that regard.
-
- What I meant in vaguely saying that "Only ANSI guarantees portability" is that
- by understanding the language as described by the ANSI/ISO standard, the
- programmer can choose to write portable code by avoiding introducing
- implementation-defined behavior. I did not mean that somehow the standard
- magically ensures that all compliant programs (strictly or not) will be
- portable.
- --
-
-